﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BugzX.Repositories
{
    public static class BugRepository
    {
        public static List<Bug> GetByProjectComponentId(int projectComponentId)
        {
            var context = new BugzXDBEntities();

            var bugs = from b in context.Bugs
                       where b.ProjectComponentId == projectComponentId
                       select b;

            return bugs.ToList();
        }
    }
}